import React from 'react'
import {MenuProps} from 'antd'
import {RouteObject} from 'react-router-dom'
export interface IAuthInialState{
    menus:MenuProps['items'],
    routes:Array<RouteObject>
}
/*定义规范权限数据对象的接口 */
export interface IRightData{
    _id:string,
    title:string,
    pid:string,
    path:string,
    icon:string,
    children?:IRightData[]
}
/*定义规范AntdMenu对象的接口 */
export interface IAntdMenuItem{
    label:string
    key:string
    icon?:React.ReactNode,
    children?:Array<IAntdMenuItem>
}